import { axios as request  } from '@/utils/request'

export function getList({pid: companyId, params}) {
  if (!companyId) return new Promise((resolve, reject) => {reject()})
  return request({
    url: `api/company/${companyId}/order`,
    method: 'get',
    params
  })
}